# 封装读取请求体数据的函数
import json
import config
class ReadData:
  @classmethod
  def read_ihrm_login_data(cls, file_path):
    with open(file_path, "r", encoding="utf-8") as f:
      data = json.load(f)
      list_data = []
      for i in data:
        temp = tuple(i.values())
        list_data.append(temp)
      return list_data
if __name__ == '__main__':
    file_path=config.BASE_DIR + "/data/ihrm_manage_emp_data.json"
    data=ReadData.read_ihrm_login_data(file_path)
    list1=[]
    a=0
    i=0
    for i in data:
      mo=i[a].get("mobile")

    print(list1)

